#!/bin/sh
yum install dnsmasq bind unzip -y
chkconfig dnsmasq on
chkconfig named on
wget  https://dl.lli.cx/Program/dns/PureDns.zip
unzip PureDns.zip -d /
service dnsmasq restart
service named restart
cd /var/dns
chmod +x overture
nohup ./overture >/dev/null 2>&1 &
wget https://dl.lli.cx/Program/dns/overture-linux-amd64.zip
unzip -o -d /var/overture-linux-amd64 overture-linux-amd64.zip
cd /var/overture-linux-amd64
wget https://dl.lli.cx/Program/dns/hosts_sample -O hosts_sample
chmod +x overture-linux-amd64
nohup ./overture-linux-amd64 &